feat(docs): Swagger/Postman 展示返回结果 response schema (issue #6)#194
Merged
Conversation
- Swagger responses.200 输出标准 schema(type/properties/required), 复用 extractDocFields 与参数提取保持一致;未声明 response 时保持占位 - Postman item 输出 response 示例(按 schema 字段名+类型生成占位 body) - 新增 5 个回归测试(swagger 3 + postman 2) - bump 版本 3.2.1 → 3.2.2,登记 MIGRATION
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
==========================================
+ Coverage 92.47% 92.54% +0.07%
==========================================
Files 28 28
Lines 2883 2939 +56
Branches 747 770 +23
==========================================
+ Hits 2666 2720 +54
- Misses 215 217 +2
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 issue
Closes #6
改动内容
responses.200输出标准 schema(type/properties/required),此前写死{ description: "请求成功" }完全忽略responseSchemaresponse示例(按 schema 字段名+类型生成占位 body)extractDocFields,与参数提取保持一致测试
npm run test:lib:317 → 322 全绿tsc --noEmit通过版本
bump 3.2.1 → 3.2.2,已登记 MIGRATION
合并顺序提示
本系列共 4 个 PR(#6 / #27 / #5 / #4),各基于 main 独立 bump 版本(3.2.2 / 3.2.3 / 3.2.4 / 3.2.5)。请按版本号顺序合并,从本 PR(3.2.2)开始。